﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

///  被弃用
public class SpuareCells : MonoBehaviour
{
    public GameObject game; //一个临时变量，用于索引要生成的预制体

    public int xPos;
    public int yPos;

    SquareStatus squareStatus;

    public void GenerateSpuareCells()
    {
        switch (squareStatus)
        {
            case SquareStatus.Mountain:
                //Instantiate(game, GetPosition(position),Quaternion.identity);
                //TODO:在相应位置生成的逻辑
                break;
            case SquareStatus.Grass:
                //Instantiate(game, GetPosition(position), Quaternion.identity);
                break;
            case SquareStatus.Forest:   //即未解锁状态
                //Instantiate(game, GetPosition(position), Quaternion.identity);

                break;
        }
    }
    public void ChangeSquareStatusRandomly()
    {
        squareStatus = (SquareStatus)Random.Range(1, 3);//随机生成切换类型
    }

    


}